<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
/**
 * Created by PhpStorm.
 * User: mac
 * Date: 15/10/17
 * Time: 下午6:57
 */

class DropOrderTodayCommand extends Command{

    protected $name = 'drop:orderToday';

    protected $description = '定时清空OrderToday今日出菜表';

    public function __construct()
    {
        parent::__construct();
    }

    public function fire()
    {
        OrderToday::truncate();
        DB::raw('alter table orders_today AUTO_INCREMENT=1');
    }
}